package com.kin207.netty.listener.server.handle;

import com.kin207.netty.handle.IMessageHandle;
import com.kin207.netty.listener.server.handle.vo.C2sMessageReqVo;
public class C2sMessageHandle implements IMessageHandle<C2sMessageReqVo> {

	public String name() {
		return "/msg/c2s";
	}

	public Class paramClass() {
		return C2sMessageReqVo.class;
	}

	public void handle(C2sMessageReqVo param) {
/*		RequestContext req = RequestContext.curr.get();
		Session session = req.getSession();
		SessionManagerAbs sessionManger = req.getSessionManager();
		
		String name = param.getName();
		
		P2pMessageVo msg = new P2pMessageVo(session.getName(), param.getMessage());
		if(sessionManger.sendMessageForName(param.getName(), msg.toString())!=0){
			req.wirte(String.format("error:%s不在线,消息未送达", name));
		}*/
	}

}
